import java.io.File;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User:
 * Date: 2025-05-13
 * Time: 20:29
 */
public class demo3 {
    public static void main(String[] args) throws IOException, InterruptedException {
        File file = new File("./text.txt");
        file.createNewFile();

        file.deleteOnExit();
        Thread.sleep(10000);
    }
}
